package lesson5;

import java.util.Scanner;

public class yy16 {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String word=sc.next();
		System.out.println(name(word));
	}
	public static String name(String word) {
		
		char[]aa=new char[word.length()];
		for (int i = 0; i < word.length(); i++) {
			aa[i]=word.charAt(i);
		}
		
		return huahua(aa);
	}
	public static String huahua(char[]fan) {
		String bb="";
		char a='z',b='y',c='x',d='w',e='v',f='u',g='t',h='s',i='r',j='q',k='p',l='o',
			m='n',n='m',o='l',p='k',q='j',r='i',s='h',t='g',u='f',v='e',w='d',x='c',y='b',z='a',
			kong=' ', A='Z',B='Y',C='X',D='W',E='V',F='U',G='T',H='S',I='R',J='Q',K='P',L='O',
			M='N',N='M',O='L',P='K',Q='J',R='I',S='H',T='G',U='F',V='E',W='D',X='C',Y='B',Z='A';
		char[]letter= {a,A,b,B,c,C,d,D,e,E,f,F,g,G,h,H,i,I,j,J,k,K,l,L,m,M,kong,N,n,O,o,P,p,Q,q,R,r,S,s,T,t,U,u,V,v,W,w,X,x,Y,y,Z,z};
		char[]word=new char[fan.length];
		int[]location= new int[fan.length];
		for (int z2 = 0; z2 < fan.length; z2++) {
			for (int int1 = 0; int1 < letter.length; int1++) {
				if (fan[z2]==letter[int1]) {
					location[z2]=52-int1;
				}
			}
		}
		for (int z2 = 0; z2 < fan.length; z2++) {
			word[z2]=letter[location[z2]];
			bb=bb+word[z2];
		}
		return bb;
	}
}
